home *** CD-ROM | disk | FTP | other *** search
- <%@ Language=VBScript CODEPAGE=65001 %>
- <!--#include file="include/wmsLocStrings.inc"-->
- <!--#include file="include/wmsServerHash.inc"-->
- <!--#include file="include/wmsPlugins.inc"-->
- <!--#include file="include/wmsHeader.inc"-->
- <!--#include file="include/wmsPageBanner.inc"-->
- <!--#include file="include/wmsError.inc"-->
- <%
- '+-------------------------------------------------------------------------
- '
- ' Microsoft Windows Media
- ' Copyright (C) Microsoft Corporation. All rights reserved.
- '
- ' File: NetSourceProxy.asp
- '
- ' Contents:
- '
- '--------------------------------------------------------------------------
-
- ConnectToPlugin
- ConnectToPluginAdmin
-
- on error resume next
-
- Dim strProtocolName
- Dim strProxyHostName
- Dim dwProxyPort
- Dim dwProxySettings
- Dim strUserName
- Dim bPasswordExists
- Dim strPassword
- Dim strConfirmPassword
- Dim bError
-
- Dim bUseProxyServer
- Dim bServerRequiresAuthentication
-
- Const WMS_PROXY_SETTING_NONE = 0
- Const WMS_PROXY_SETTING_MANUAL = 1
- Const WMS_PROXY_SETTING_AUTO = 2
- Const WMS_PROXY_SETTING_BROWSER = 3 ' Only valid for HTTP
-
- dwProxyPort = 0
- strProtocolName = RemoveDangerousCharacters( Left( SafeUnescape( GetPostOrQsVal("protocol") ), 15 ) )
- bUseProxyServer = FALSE
- bServerRequiresAuthentication = FALSE
-
- bError = FALSE
- bPasswordExists = FALSE
-
- strOp = GetFormStr( "submit" )
- if ( 0 < Len( strOp ) ) then
-
- on error resume next
-
- ' use a do-while-false structure to break out upon first error
- do
- bUseProxyServer = CBool( 0 < Len( GetFormStr( "useProxy" ) ) )
- bProxyRequiresAuthen = CBool( 0 < Len( GetFormStr( "ProxyRequiresAuthen" ) ) )
-
- strProxyHostName = RemoveDangerousCharacters( Left( SafeUnescape( GetFormStr("proxyName" ) ), MAX_LEN_SERVERNAME ) )
- dwProxyPort = CDbl( Left( GetFormDbl("port"), 5 ) )
-
- err.Clear
-
- if( ( 0 <= dwProxyPort ) and ( 65536 > dwProxyPort ) and ( dwProxyPort <> g_objPluginAdmin.ProxyPort( strProtocolName ) ) ) then
- g_objPluginAdmin.SetProxyPort strProtocolName, dwProxyPort
- end if
- if( ErrorDetected( "UseProxy" ) ) then
- err.description = RemoveDangerousCharacters( L_MANUALPROXYFAILED_TEXT )
- bError = TRUE
- Exit Do
- end if
-
- if( 0 <> StrComp( strProxyHostName, g_objPluginAdmin.ProxyHostName( strProtocolName ), vbTextCompare ) ) then
- g_objPluginAdmin.SetProxyHostName strProtocolName, strProxyHostName
- end if
- if( ErrorDetected( "UseProxy" ) ) then
- err.description = RemoveDangerousCharacters( L_MANUALPROXYFAILED_TEXT )
- bError = TRUE
- Exit Do
- end if
-
- if bUseProxyServer then
-
- g_objPluginAdmin.SetProxySettings strProtocolName, WMS_PROXY_SETTING_MANUAL
- if( ErrorDetected( "UseProxy" ) ) then
- err.description = RemoveDangerousCharacters( L_MANUALPROXYFAILED_TEXT )
- bError = TRUE
- Exit Do
- end if
-
- else
-
- g_objPluginAdmin.SetProxySettings strProtocolName, WMS_PROXY_SETTING_NONE
- if( ErrorDetected( "UseProxy" ) ) then
- err.description = RemoveDangerousCharacters( L_MANUALPROXYFAILED_TEXT )
- bError = TRUE
- Exit Do
- end if
-
- end if
-
- strUserName = Left( RemoveSpecifiedChars( SafeUnescape( trim( posting( "userName" ) ) ), REGEXT_ILLEGAL_UNAME_CHARS ), MAX_USERNAME )
- strPassword = Left( RemoveDangerousCharacters( SafeUnescape( trim( posting( "password" ) ) ) ), MAX_PASSWD )
- strConfirmPassword = Left( RemoveDangerousCharacters( SafeUnescape( trim( posting( "confirm" ) ) ) ), MAX_PASSWD )
-
- if ( 0 < Len( strUserName ) ) then
-
- if ( 0 <> StrComp( strPassword, L_PASSWORDPHOLD_TEXT, vbTextConfirm ) ) then
- if( bProxyRequiresAuthen ) then
- if( 0 = strcomp( strPassword, strConfirmPassword ) ) then
- if( DetectSpecifiedChars( posting( "userName" ), REGEXP_DANGEROUS_CHARS ) ) then
- Err.Raise( -2 )
- Err.Description = L_USERNAMEBADCHAR_TEXT
- bError = TRUE
- Exit Do
- elseif( DetectSpecifiedChars( posting( "password" ), REGEXP_DANGEROUS_CHARS ) ) then
- Err.Raise( -2 )
- Err.Description = L_PASSWORDBADCHAR_TEXT
- bError = TRUE
- Exit Do
- else
- s_WMSAdmin.SetNetSourceProxyCredentials g_objPluginAdmin, strProtocolName, strUserName, strPassword
- if( ErrorDetected( "Credentials" ) ) then
- bError = TRUE
- Exit Do
- end if
- end if
- else
- Err.Raise( -1 )
- err.description = RemoveDangerousCharacters( L_PASSWORDMISMATCH_TEXT )
- bError = TRUE
- Exit Do
- end if
- else
- s_WMSAdmin.SetNetSourceProxyCredentials g_objPluginAdmin, strProtocolName, CStr( "" ), CStr( "" )
- if( ErrorDetected( "Credentials" ) ) then
- bError = TRUE
- Exit Do
- end if
- end if
- end if
-
- else
- s_WMSAdmin.SetNetSourceProxyCredentials g_objPluginAdmin, strProtocolName, CStr( "" ), CStr( "" )
- if( ErrorDetected( "Credentials" ) ) then
- bError = TRUE
- end if
- end if
-
- if ( FALSE = bError ) and ( 0 = err.Number ) then
- Response.Redirect "NetworkSource.asp?server=" & g_strQueryStringServer & _
- "&protocolList=" & GetPostOrQsVal( "protocolList" ) & _
- "&usePortRange=" & GetPostOrQsVal( "usePortRange" ) & _
- "&portRange=" & GetPostOrQsVal( "portRange" ) & _
- "&useUDP=" & GetPostOrQsVal( "useUDP" ) & _
- "&useTCP=" & GetPostOrQsVal( "useTCP" ) & _
- "&category=" & g_strCategory & _
- "&pluginIndex=" & qs("pluginIndex") & _
- "&protocol=" & SafeEscape( SafeUnescape( GetPostOrQsVal("protocol") ) )
- end if
-
- Loop Until TRUE
-
- else
- on error resume next
- dwProxySettings = g_objPluginAdmin.ProxySettings( strProtocolName )
- if( 0 <> err.Number ) then
- dwProxySettings = WMS_PROXY_SETTING_BROWSER
- err.Clear
- end if
-
- bUseProxyServer = WMS_PROXY_SETTING_NONE <> dwProxySettings
-
- strProxyHostName = g_objPluginAdmin.ProxyHostName( strProtocolName )
- if( 0 <> err.Number ) then
- strProxyHostName = ""
- err.Clear
- end if
-
- dwProxyPort = CDbl( g_objPluginAdmin.ProxyPort( strProtocolName ) )
- if( 0 <> err.Number ) then
- dwProxyPort = ""
- err.Clear
- end if
-
- strUserName = g_objPluginAdmin.ProxyUserName( strProtocolName )
- if( 0 <> err.Number ) then
- strUserName = ""
- err.Clear
- end if
-
- bServerRequiresAuthentication = CBool( 0 < Len( strUserName ) )
-
- bPasswordExists = g_objPluginAdmin.ProxyPassword( strProtocolName )
- if( 0 <> err.Number ) then
- strPassword = ""
- err.Clear
- end if
- if( bPasswordExists ) then
- strPassword = L_PASSWORDPHOLD_TEXT
- else
- strPassword = ""
- end if
-
- end if
-
- '////////////////////////////////////////////////////////////////
- Function BuildProtocolText( strValue )
- Dim strTemplate
- strTemplate = L_CONFIGURE_TEXT
- BuildProtocolText = Replace( strTemplate, "___", Server.HTMLEncode( trim( strValue ) ), 1 )
- End Function
-
- WriteHTMLHeader( g_strDecodedServerName )
- %>
- <link rel="stylesheet" type="text/css" href="<%= Session( "cssName" ) %>">
- <% WritePluginJSUtils %>
- <script language=javascript>
- <!--
- /*@cc_on @*/
-
- ///////////////////////////
- function RemoveBadUsernameChars( szUnfiltered )
- {
- <% jsTRY %>
- var szSafeString = new String( szUnfiltered );
- var re = /\<|\>|\"|`|!|@|#|\$|\%|\^|\||\[|\]|\;|\:|\?|\(|\)|\{|\}|\&|\u201C|\u201D|\u201E|\"\&/gim;
- szSafeString = szUnfiltered.replace( re, "" );
-
- return( szSafeString );
- <% jsCATCH %>
- }
-
- var g_bUserAlertedToBadUerName = false;
- var g_bUserAlertedToBadPasswd = false;
- var g_IsValidationMutexBusy = false;
-
- ///////////////////////////
- function CheckIfUserChanged()
- {
- <% jsTRY %>
- var szUser;
- var szPass;
- var szConfirm;
-
- if( document.forms.pluginForm.username.value == "<%= EscBackslashChar( Left( RemoveSpecifiedChars( SafeUnescape( trim( strUserName ) ), REGEXT_ILLEGAL_UNAME_CHARS ), MAX_USERNAME ) ) %>" )
- {
- return( false );
- }
-
- if( document.forms.pluginForm.password.value == "<%= Server.HTMLEncode( L_PASSWORDPHOLD_TEXT ) %>" )
- {
- document.forms.pluginForm.password.value = "";
- document.forms.pluginForm.confirm.value = "";
- return( true );
- }
-
- if( document.forms.pluginForm.confirm.value == "<%= Server.HTMLEncode( L_PASSWORDPHOLD_TEXT ) %>" )
- {
- document.forms.pluginForm.password.value = "";
- document.forms.pluginForm.confirm.value = "";
- return( true );
- }
-
- szUser = new String( document.forms.pluginForm.username.value );
- if( 0 == szUser.length )
- {
- return( true );
- }
- <% jsCATCH %>
- return( true );
- }
-
- ///////////////////////////
- function ValidateUserPass()
- {
- <% jsTRY %>
- var szUser = "";
- var szPass = "";
- var szConf = "";
- var bUserOkay = true;
- var bError = false;
- var bUserChanged = false;
-
- if( true == g_IsValidationMutexBusy )
- {
- return( true );
- }
- g_IsValidationMutexBusy = true;
-
- document.forms.pluginForm.ok.disabled = false;
-
- bUserChanged = CheckIfUserChanged();
-
- szUser = new String( document.forms.pluginForm.username.value )
- szPass = new String( document.forms.pluginForm.password.value )
- szConf = new String( document.forms.pluginForm.confirm.value )
-
- if( ( 0 == szUser.length ) && ( 0 == szPass.length ) && ( 0 == szConf.length ) )
- {
- // it's legal to clear all credentials
- if( false == bError )
- {
- document.forms.pluginForm.ok.disabled = false;
- window.status = "";
- }
- g_IsValidationMutexBusy = false;
- return( true );
- }
-
- if( ( 0 == szUser.length ) || bUserChanged )
- {
- document.forms.pluginForm.ok.disabled = ( 0 == szUser.length ) && ( ( 0 < szPass.length ) || ( 0 < szConf.length ) );
- }
-
- // check username
- var szFilteredUser = RemoveBadUsernameChars( szUser );
- if( szUser.length != szFilteredUser.length )
- {
- document.forms.pluginForm.username.style.color = "#FF0000";
- document.forms.pluginForm.ok.disabled = true;
- bError = true;
- window.status = "<%= L_USERNAMEBADCHAR_TEXT %>";
- if( false == g_bUserAlertedToBadUerName )
- {
- g_bUserAlertedToBadUerName = true;
- window.alert( "<%= L_INVALIDCHARSINUSERNAME_TEXT %>" );
- }
- }
- else
- {
- document.forms.pluginForm.username.style.color = "#000000";
- }
-
- // if any changes to pass or confirm, wipe canned password fields
- if( ( ( "<%= L_PASSWORDPHOLD_TEXT %>" == document.forms.pluginForm.password.value ) &&
- ( "<%= L_PASSWORDPHOLD_TEXT %>" != document.forms.pluginForm.confirm.value ) ) ||
- ( ( "<%= L_PASSWORDPHOLD_TEXT %>" != document.forms.pluginForm.password.value ) &&
- ( "<%= L_PASSWORDPHOLD_TEXT %>" == document.forms.pluginForm.confirm.value ) ) )
- {
- document.forms.pluginForm.password.value = document.forms.pluginForm.confirm.value = "";
- g_IsValidationMutexBusy = false;
- return( true );
- }
-
- // if any changes to username, wipe canned password fields
- if( ( ( 0 < szConf.length ) || ( 0 < szPass.length ) ) && ( szPass.length != szConf.length ) )
- {
- if( ( "<%= L_PASSWORDPHOLD_TEXT %>" == document.forms.pluginForm.password.value ) ||
- ( "<%= L_PASSWORDPHOLD_TEXT %>" == document.forms.pluginForm.confirm.value ) )
- {
- szPass = "";
- szConf = "";
- document.forms.pluginForm.password.value = document.forms.pluginForm.confirm.value = "";
- g_IsValidationMutexBusy = false;
- return( true );
- }
- }
-
- if( "<%= L_PASSWORDPHOLD_TEXT %>" != document.forms.pluginForm.password.value )
- {
- var szFilteredPass = RemoveDangerousCharacters( szPass );
- if( szPass.length != szFilteredPass.length )
- {
- document.forms.pluginForm.password.style.color = "#FF0000";
- document.forms.pluginForm.ok.disabled = true;
- szPass = "";
- bError = true;
- window.status = "<%= L_PASSWORDBADCHAR_TEXT %>";
- if( false == g_bUserAlertedToBadPasswd )
- {
- g_bUserAlertedToBadPasswd = true;
- window.alert( "<%= L_PASSWORDBADCHAR_TEXT %>" );
- }
- }
- else
- {
- document.forms.pluginForm.password.style.color = "#000000";
- }
- }
-
- if( "<%= L_PASSWORDPHOLD_TEXT %>" != document.forms.pluginForm.confirm.value )
- {
- var szFilteredConf = RemoveDangerousCharacters( szConf );
- if( szConf.length != szFilteredConf.length )
- {
- document.forms.pluginForm.confirm.style.color = "#FF0000";
- document.forms.pluginForm.ok.disabled = true;
- szConf = "";
- bError = true;
- window.status = "<%= L_PASSWORDBADCHAR_TEXT %>";
- if( false == g_bUserAlertedToBadPasswd )
- {
- g_bUserAlertedToBadPasswd = true;
- window.alert( "<%= L_PASSWORDBADCHAR_TEXT %>" );
- }
- }
- else
- {
- document.forms.pluginForm.confirm.style.color = "#000000";
- }
- }
-
- if( true == bError )
- {
- document.forms.pluginForm.ok.disabled = true;
- }
- else
- {
- window.status = "";
- if( ( 0 == szUser.length ) && ( 0 == szPass.length ) && ( 0 == szConf.length ) )
- {
- document.forms.pluginForm.ok.disabled = false;
- g_IsValidationMutexBusy = false;
- return( true );
- }
-
- if( ( false == bError ) && document.forms.pluginForm.password.value == document.forms.pluginForm.confirm.value )
- {
- if( 0 < szUser.length )
- {
- document.forms.pluginForm.ok.disabled = false;
- }
- g_IsValidationMutexBusy = false;
- return( true );
- }
- }
-
- document.forms.pluginForm.ok.disabled = true;
- g_IsValidationMutexBusy = false;
- return( true );
- <% jsCATCH %>
- }
-
- ///////////////////////////////////////////////////////////////////////////
- function IsLegalProxyName( szName )
- {
- <% jsTRY %>
- // disregard white spaces
- var szNameFiltered = szName.replace( /(\s)+/g, "" );
- if( szNameFiltered.length != szName.length )
- {
- window.status = "<%= Server.HTMLEncode( L_INVALIDSERVERNAME_TEXT ) %>";
- return( false );
- }
-
- szNameFiltered = RemoveDangerousCharacters( szName );
- if( szNameFiltered.length != szName.length )
- {
- window.status = "<%= Server.HTMLEncode( L_INVALIDSERVERNAME_TEXT ) %>";
- return( false );
- }
- else
- {
- window.status = "";
- return( true );
- }
- <% jsCATCH %>
- return( false );
- }
-
- ///////////////////////////////////////////////////////////////////////////
- function IsNaturalNumber( szValue )
- {
- <% jsTRY %>
- var dwNumber;
- var szNumber = szValue;
- var szConvertedNumber;
-
- var regExpTest = new RegExp( /^\d+$/gi );
- if( ! regExpTest.test( szValue ) )
- {
- return( false );
- }
- return( true );
-
- <% jsCATCH %>
- return( false );
- }
-
- ////////////////////////////////////////////////////////////
- function IsValidPortNumber( szValue )
- {
- <% jsTRY %>
- var dwNumber = new Number( szValue );
-
- if( dwNumber > 65535 )
- {
- return( false );
- }
-
- if( dwNumber <= 0 )
- {
- return( false );
- }
- <% jsCATCH %>
- return( true );
- }
-
- ////////////////////////////////////////////////////////////
- function EnableDisableTextAndButtons()
- {
- <% jsTRY %>
- var bAllowProxyServerControls = false;
- var bAllowAuthenControls = false;
- var bAllowOK = true;
-
- document.forms.pluginForm.ProxyRequiresAuthen.disabled = false; //! document.forms.pluginForm.useProxy.checked;
- document.forms.pluginForm.proxyName.disabled = false; //! document.forms.pluginForm.useProxy.checked;
- document.forms.pluginForm.port.disabled = false; //! document.forms.pluginForm.useProxy.checked;
-
- // User a proxy server
- bAllowProxyServerControls = document.forms.pluginForm.useProxy.checked;
- /*
- document.all.AddressLabel.disabled = ! document.forms.pluginForm.useProxy.checked;
- document.forms.pluginForm.proxyName.disabled = ! bAllowProxyServerControls;
- document.all.PortLabel.disabled = ! document.forms.pluginForm.useProxy.checked;
- document.forms.pluginForm.port.disabled = ! bAllowProxyServerControls;
- */
-
- // Proxy requires authentication
- bAllowAuthenControls = ( ( ! document.forms.pluginForm.ProxyRequiresAuthen.disabled ) && ( document.forms.pluginForm.ProxyRequiresAuthen.checked ) );
- <% if brMSIE = g_dwBrowserType then %>
- document.all.UsernameLabel.disabled = ! bAllowAuthenControls;
- document.all.PasswordLabel.disabled = ! bAllowAuthenControls;
- document.all.ConfirmLabel.disabled = ! bAllowAuthenControls;
- <% end if %>
- document.forms.pluginForm.username.disabled = ! bAllowAuthenControls;
- document.forms.pluginForm.password.disabled = ! bAllowAuthenControls;
- document.forms.pluginForm.confirm.disabled = ! bAllowAuthenControls;
-
- if( ( ! IsNaturalNumber( document.forms.pluginForm.port.value ) ) ||
- ( ! IsValidPortNumber( document.forms.pluginForm.port.value ) ) )
- {
- document.forms.pluginForm.port.style.color="#ff0000";
- document.forms.pluginForm.ok.disabled = true;
- return;
- }
-
- var szProxyName = new String( document.forms.pluginForm.proxyName.value );
- if( ( 0 == szProxyName.length ) || ( false == IsLegalProxyName( szProxyName ) ) )
- {
- // if( bAllowProxyServerControls )
- // {
- document.forms.pluginForm.ok.disabled = true;
- document.forms.pluginForm.proxyName.style.color="#ff0000";
- return;
- // }
- }
-
- var szValPort = new String( document.forms.pluginForm.port.value );
- if( 0 == szValPort.length )
- {
- if( bAllowProxyServerControls )
- {
- document.forms.pluginForm.ok.disabled = true;
- document.forms.pluginForm.port.style.color="#ff0000";
- return;
- }
- }
- else
- {
- if( ( ! IsNaturalNumber( szValPort ) ) ||
- ( ! IsValidPortNumber( szValPort ) ) )
- {
- document.forms.pluginForm.ok.disabled = true;
- document.forms.pluginForm.port.style.color="#ff0000";
- return;
- }
- }
- if( bAllowProxyServerControls )
- {
- window.status = "";
- document.forms.pluginForm.proxyName.style.color="#000000";
- document.forms.pluginForm.port.style.color="#000000";
- }
- else
- {
- document.forms.pluginForm.proxyName.style.color="#666666";
- document.forms.pluginForm.port.style.color="#666666";
- }
-
- document.forms.pluginForm.ok.disabled = ! bAllowOK;
- <% jsCATCH %>
- }
-
- ////////////////////////////////////////////////////////////
- function GoBack()
- {
- <% jsTRY %>
- var szUsePortRange,szPortRange, szUDP, szTCP;
-
- szUsePortRange = new String( "<%= qs( "UsePortRange" ) %>" );
- szPortRange = new String( "<%= qs( "PortRange" ) %>" );
- szUDP = new String( "<%= qs( "useUDP" ) %>" );
- szTCP = new String( "<%= qs( "useTCP" ) %>" );
- document.location.replace( "NetworkSource.asp?server=<%= g_strQueryStringServer %>&category=<%= GetPostOrQsVal("category") %>&pluginIndex=<%= qs( "pluginIndex" ) %>&protocolList=<%= GetPostOrQsVal("protocolList") %>" + "&usePortRange=" + szUsePortRange + "&portRange=" + szPortRange + "&useUDP=" + szUDP + "&useTCP=" + szTCP );
- <% jsCATCH %>
- }
- -->
- </script>
- </head>
- <body class="pluginBody" onLoad="JavaScript:EnableDisableTextAndButtons();" oncontextmenu="JavaScript:event.cancelBubble=true;return false;">
- <table width="100%" class="pluginheader" height="90" cellspacing="0" cellpadding="0" border="0">
- <tr>
- <td colspan="2" class="pluginheadertext" nowrap>
- <%= Server.HTMLEncode( g_strServerName ) %><% if ( 0 <> Len( g_strEncodedPubPointName ) ) then Response.Write( " (" & Server.HTMLEncode( ConvertPPName( g_strPubPointName, -1 ) ) ) & ")" end if %>
- </td>
- </tr>
- <tr>
- <td class="pluginheadertext" nowrap>
- <%= Server.HTMLEncode( g_strPluginName ) %>
- </td>
- <td>
- <% if( FALSE = g_bSecureConnection ) then
- %> <script language="JavaScript">
- ShowHideSecureWarning( "img/Not_secure_32.gif" );
- </script>
- <% end if
-
- if "" <> strProtocolName then
- %> </td>
- </tr>
- <tr>
- <td colspan="2" class="pluginheadertext" nowrap>
- <%= BuildProtocolText( ucase( strProtocolName ) ) %><%
- end if
- %>
- </td>
- </tr>
- </table>
- <% on error resume next %>
- <table width="<%= Server.HTMLEncode( STDTABLEWIDTH ) %>">
- <tr>
- <td valign=top>
-
- <% WriteStdPluginForm %>
- <input type="hidden" name="protocolList" value="<%= GetPostOrQsVal( "protocolList" ) %>">
- <input type="hidden" name="usePortRange" value="<%= GetPostOrQsVal( "usePortRange" ) %>">
- <input type="hidden" name="portRange" value="<%= GetPostOrQsVal( "portRange" ) %>">
- <input type="hidden" name="useUDP" value="<%= GetPostOrQsVal( "useUDP" ) %>">
- <input type="hidden" name="useTCP" value="<%= GetPostOrQsVal( "useTCP" ) %>">
-
- <p>
- <div class="normal">
- </div>
-
- <table cellpadding=0 cellspacing=0 border=0 class="propgroupbox" width="100%">
- <tr>
- <td>
- <div class="defaultcursor" >
- <input
- type="checkbox"
- name="useProxy"
- ID="useProxyID"
- value="on"
- tabindex=1 <%
- if ( ( 0 < Len( strProxyHostName ) ) and ( WMS_PROXY_SETTING_NONE <> dwProxySettings ) ) then %> checked <% end if %>
- onClick="JavaScript:EnableDisableTextAndButtons();"
- onChange="JavaScript:EnableDisableTextAndButtons();"
- > <label for="useProxyID" ID="useProxyLabel" class="defaultcursor" >
- <% RenderWithErrorCheck Server.HTMLEncode( L_USEPROXY_TEXT ), "UseProxy" %></label><br>
- </div>
- </td>
- </tr>
- <tr>
- <td colspan=2>
- <table color="#000000" width="100%" border=0 cellpadding=0>
- <tr>
- <td width=60> </td>
- <td class="defaultcursor" align=left nowrap>
- <span nowrap name="AddressLabel" ID="AddressLabel"><%= Server.HTMLEncode( L_ADDRESSCOLON_TEXT ) %> </span>
- </td>
- <td align=left>
- <input
- type="text"
- name="proxyName"
- value="<%= RemoveSpecifiedChars( strProxyHostName , REGEXP_DANGEROUS_CHARS ) %>"
- size=15
- maxlength=255
- tabindex=2
- onKeyUp="JavaScript:EnableDisableTextAndButtons();"
- onKeyDown="JavaScript:EnableDisableTextAndButtons();"
- <% if( FALSE and FALSE = bUseProxyServer ) then %> disabled <% end if %> >
- </td>
- <td width=10> </td>
- <td class="defaultcursor" nowrap>
- <span nowrap ID="PortLabel"><%= Server.HTMLEncode( L_PORTCOLON_TEXT ) %> </span>
- </td>
- <td align=left>
- <input
- type="text"
- name="port"
- onKeyUp="JavaScript:EnableDisableTextAndButtons();"
- onKeyDown="JavaScript:EnableDisableTextAndButtons();"
- onChange="JavaScript:EnableDisableTextAndButtons();"
- onPaste="JavaScript:EnableDisableTextAndButtons();"
- value="<% if ( 0 < dwProxyPort ) then Response.Write( RemoveDangerousCharacters( dwProxyPort ) ) end if %>"
- size=4
- maxlength=5
- tabindex=3
- <% if( FALSE and FALSE = bUseProxyServer ) then %> disabled <% end if %> >
- </td>
- <td width=50%> </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <table cellspacing=0 cellpadding=0 width="100%" border=0>
- <tr>
- <td width="10">
- <br>
- </td>
- <td colspan=2>
- <br>
- <hr width="80%" align="left">
- <br>
- <table border=0 cellspacing=0 cellpadding=0 width="100%">
- <tr>
- <td>
- <div align="left" ID="CredHelp" class="helptext"><%= Server.HTMLEncode( L_NETSOURCEHELP1_TEXT ) %></div><br>
- <table cellspacing="0" cellpadding="0" border="1" width="90%"><tr><td>
- <table class="propgroupbox" width="1000%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="10">
-
- </td>
- <td colspan="6">
- <input
- type="checkbox"
- name="ProxyRequiresAuthen"
- ID="ProxyRequiresAuthenID"
- value="on"
- tabindex=4 <% if( "" <> strUserName ) then %> checked <% end if %>
- onClick="JavaScript:EnableDisableTextAndButtons();">
- <label for="ProxyRequiresAuthenID" ID="ProxyRequiresAuthenLabel"
- class="defaultcursor">
- <% RenderWithErrorCheck Server.HTMLEncode( L_PROXYREQUIRESAUTHEN_TEXT ), "Credentials" %></label><br>
- </td>
- </tr>
- <tr>
- <td width="10">
-
- </td>
- <td>
- <table class="propgroupbox" width="90%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="10">
-
- </td>
- <td class="defaultcursor" colspan="6">
- <span ID="UsernameLabel"><%= Server.HTMLEncode( L_USERNAMECOLON_TEXT ) %></span>
- </td>
- </tr>
- <tr>
- <td width="10">
-
- </td>
- <td colspan="6">
- <input
- type="text"
- name="username"
- value="<%= EscBackslashChar( Left( RemoveSpecifiedChars( SafeUnescape( trim( strUserName ) ), REGEXT_ILLEGAL_UNAME_CHARS ), MAX_USERNAME ) ) %>"
- tabindex="5"
- maxlength="500"
- onKeyDown="JavaScript:ValidateUserPass();"
- onKeyUp="JavaScript:ValidateUserPass();"
- onChange="JavaScript:ValidateUserPass();"
- onPaste="JavaScript:ValidateUserPass();"
- <%if ( FALSE = bUseProxyServer ) or ( FALSE = bServerRequiresAuthentication ) then %>disabled <%
- end if %>
- ><br><br>
- </td>
- </tr>
- <tr>
- <td width="10">
-
- </td>
- <td class="defaultcursor" colspan="6">
- <span ID="PasswordLabel"><%= Server.HTMLEncode( L_PASSWORDCOLON_TEXT ) %></span>
- </td>
- </tr>
- <tr>
- <td width="10">
-
- </td>
- <td colspan=6>
- <input
- type="password"
- name="password"
- value="<%= Server.HTMLEncode( strPassword ) %>"
- tabindex=6
- maxlength=254
- onKeyDown="JavaScript:ValidateUserPass();"
- onKeyUp="JavaScript:ValidateUserPass();"
- onChange="JavaScript:ValidateUserPass();"
- onPaste="JavaScript:ValidateUserPass();"
- <%if ( FALSE = bUseProxyServer ) or ( FALSE = bServerRequiresAuthentication ) then %>disabled <%
- end if %>
- ><br><br>
- </td>
- </tr>
- <tr>
- <td width=10>
-
- </td>
- <td class="defaultcursor" colspan=6>
- <span ID="ConfirmLabel"><%= Server.HTMLEncode( L_CONFIRMPASSCOLON_TEXT ) %></span>
- </td>
- </tr>
- <tr>
- <td width=10>
-
- </td>
- <td colspan=6>
- <input
- type="password"
- name="confirm"
- value="<%= Server.HTMLEncode( strPassword ) %>"
- tabindex=7
- maxlength=254
- onKeyDown="JavaScript:ValidateUserPass();"
- onKeyUp="JavaScript:ValidateUserPass();"
- onChange="JavaScript:ValidateUserPass();"
- onPaste="JavaScript:ValidateUserPass();"
- <%if ( FALSE = bUseProxyServer ) or ( FALSE = bServerRequiresAuthentication ) then %>disabled <%
- end if %>
- >
- </td>
- </tr>
- </table>
- </td></tr></table>
- </td>
- </tr>
- </table>
- <br>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <tr>
- <td valign="bottom">
- <input id="ok" type="submit" align="baseline" name="ok" value="<%= Server.HTMLEncode( L_OKAYBUTTON_TEXT ) %>" tabIndex=8 >
- <input id="cancel" type="button" align="baseline" name="cancel" onclick="JavaScript:GoBack();" value="<%= Server.HTMLEncode( L_CANCELBUTTONSPACED_TEXT ) %>" tabIndex=9 >
- <input id="help" type="button" align="baseline" name="help" onclick="JavaScript:DoPluginHelp( '<%= H_NETSOURCEPROXYTOPIC %>' );" value="<%= Server.HTMLEncode( L_HELPBUTTONSPACED_TEXT ) %>" tabindex=10 >
- </td>
- </tr>
- </td>
- </tr>
- </form>
- </table>
- <%
- AlertUserWithPopupErrorDialog
- OnErrorGoBack
- DrawStdFooter
- %>
- </body>
- </html>
- <%
- LatchCurrentPage "plugins/NetSourceProxy.asp", qs
- EndErrorHandling "NetSourceProxy.asp"
-
- on error resume next
- PluginsASPCleanup
- %>